Revert "wayland: fix filechooser crash"
authorMatthias Clasen <mclasen@redhat.com>
Wed, 23 Aug 2017 14:40:12 +0000 (10:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 23 Aug 2017 14:40:12 +0000 (10:40 -0400)
This reverts commit bd033165e52469845ac6f69c4fa9ac9b897f9bcc.

The function already had an early exit, no need for this check.

gdk/wayland/gdkwindow-wayland.c

index 3da3a9dd64e3cf8e972d1839907a7ee152967355..1b015346bcb71ef121675e4662748cfa70a0e219 100644 (file)
@@ -1177,8 +1177,7 @@ gdk_wayland_window_sync_opaque_region (GdkWindow *window)
     wl_region = wl_region_from_cairo_region (GDK_WAYLAND_DISPLAY (gdk_window_get_display (window)),
                                              impl->opaque_region);
 
-  if (impl->display_server.wl_surface)
-    wl_surface_set_opaque_region (impl->display_server.wl_surface, wl_region);
+  wl_surface_set_opaque_region (impl->display_server.wl_surface, wl_region);
 
   if (wl_region != NULL)
     wl_region_destroy (wl_region);